﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Reflection;

namespace BulldogCMS.Manager
{
    public class ManagerProvider : BulldogCMS.Core.Runtime.Modules.BaseModuleAreaProvider, BulldogCMS.Core.Runtime.Modules.IModuleAreaProvider
    {
        public string AreaName
        {
            get;
            set;
        }

        public System.Web.Mvc.IController CreateController(System.Web.Routing.RequestContext requestContext, string controllerName)
        {
            return base.CreateControllerFromCurrentAssembly(requestContext, controllerName, this.CurrentProviderAssembly);
        }

        public System.Reflection.Assembly CurrentProviderAssembly
        {
            get {
                return Assembly.GetExecutingAssembly();
            }
        }
    }
}